/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  Test_XES_Seqence.java                                      
 *  File Contents Outline :  串行日志预处理
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package Test;
import cn.edu.thu.log.web.service.LogCleanConfigReadService;
import cn.edu.thu.log.web.service.WebConfigReadService;
import cn.edu.thu.log.web.service.impl.XESConvertServiceImp;
import cn.edu.thu.log.web.service.XESConvertService;
import cn.edu.thu.log.web.service.impl.LogCleanConfigReadServiceImpl;
import cn.edu.thu.log.web.service.impl.WebConfigReadServiceImpl;
import cn.edu.thu.log.web.service.PropertiesReaderServices;
import cn.edu.thu.log.web.service.impl.PropertiesReaderServicesImpl;

public class Test_XES_Seqence {
    public static void main(String [] args){
        PropertiesReaderServices x1 = PropertiesReaderServicesImpl.instance();
        
          XESConvertService writer = XESConvertServiceImp.instance();
            writer.setReadFilePath("D:/log/otherclick_201206010000.log");
              WebConfigReadService configService = WebConfigReadServiceImpl.instance();
            configService.setPatternName("bachuan");
             configService.setVersionName("version1.5");

            configService.config();
             LogCleanConfigReadService logcleanconfigservice=LogCleanConfigReadServiceImpl.instance();
            logcleanconfigservice.setNoiseflag(1);//说明已经选择noise文件
            logcleanconfigservice.setNoiseFileName("gehongfei"); 
            logcleanconfigservice.setClassifyTags("other");;
              writer.setResultFile("test_for_bachuan");
                        writer.setClassify("other");
                        System.out.println("action:start convert:");
                        writer.convert();
                        String analysisResult = "Analysis Information\n" + writer.getAnalysisResult() + "\n";
                        System.out.println(analysisResult);
    }
}
